@model Student;
@{
    Layout = null;
}
<div>
    <table>
        @if (Model != null)
        {
            <tr hidden>
                <td>Id</td>
                <td><input type="text" name="id" value="@Model.Id"></td>
            </tr>
            <tr>
                <td>学生姓名</td>
                <td><input type="text" name="StudentName" value="@Model.StudnetName"></td>
            </tr>
            <tr>
                <td>备注</td>
                <td><input type="text" name="Remarks" value="@Model.Remarks"></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="button" id="btnSave" value="保存">
                    <input type="button" id="btnCencel" value="取消">
                </td>
            </tr>
        }
        else
        {
            <tr hidden>
                <td>Id</td>
                <td><input type="text" name="id" value="0"></td>
            </tr>
            <tr>
                <td>学生姓名</td>
                <td><input type="text" name="StudentName"></td>
            </tr>
            <tr>
                <td>备注</td>
                <td><input type="text" name="Remarks"></td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="button" id="btnSave" value="保存">
                    <input type="button" id="btnCencel" value="取消">
                </td>
            </tr>
        }

    </table>
</div>

<script src="~/lib/jquery/dist/jquery.min.js"></script>
<script src="~/js/Base.js"></script>